package com.pengke.pangu.service.sys.service.impl;

import com.pengke.pangu.service.sys.entity.SysRole;
import com.pengke.pangu.service.sys.mapper.SysRoleMapper;
import com.pengke.pangu.service.sys.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统角色 服务实现类
 * </p>
 *
 * @author lijunjie
 * @since 2025-02-12
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getRoleByUserId(Integer id) {
        return sysRoleMapper.getRoleByUserId(id);
    }
}
